<?php
if(copy('test.txt','text.txt')){
    echo 'success';
}else{
    echo 'failed';
}
